#include "renderer.h"

RRPrim::RRPrim()
{
  verts_index = 0;
}

void RRPrim::rrSetType(RRPrimType arg)
{
  t = arg;
}

RRPrimType RRPrim::rrGetType()
{
  return t;
}

void RRPrim::rrSetVert(RRVertex arg)
{
  verts[verts_index] = arg;
  verts_index++;
}

RRVertex RRPrim::rrGetVert(int index)
{
  return verts[index];
}

RRVertex *RRPrim::rrGetVertAdrs(int index)
{
  return &verts[index];
}

int RRPrim::rrGetVertsNum()
{
  return verts_index;
}
